import java.io.File;
import java.util.Scanner;
public class Input {
    public String getPathForRead(){
        Scanner input = new Scanner(System.in);
        String path=input.nextLine();
        input.close();
        if(path.contains(":")){
            String absolutePath=path; //for readability
            return absolutePath;
        }else{
            File file=new File(path);
            String relativePath=file.getAbsolutePath();
            System.out.println(relativePath);
            return relativePath;
        }
    }
    public String getPathForWrite(){
        System.out.println("Write path for writing anagrams, please ...");
        Scanner input = new Scanner(System.in);
        String path=input.nextLine();
        input.close();
        if(path.contains(":")){
            String absolutePath=path; //for readability
            return absolutePath;
        }else{
            File file=new File(path);
            String relativePath=file.getAbsolutePath();
            System.out.println(relativePath);
            return relativePath;
        }
    }
}
